const mongoose = require('mongoose');

const messageSchema = new mongoose.Schema({
    content: String,
    sender: String, // 新增字段
    createdAt: { type: Date, default: Date.now },
});

const Message = mongoose.model('Message', messageSchema);

module.exports = Message;
